package config

type DbConfig struct {
	Host         string `yaml:"dbHost"`
	Dbname       string `yaml:"dbName"`
	User         string `yaml:"dbUser"`
	Password     string `yaml:"dbPassword"`
	MaxIdleConns int    `yaml:"maxIdleConns"`
	MaxOpenConns int    `yaml:"maxOpenConns"`
}


type RedisConfig struct {
	RedisAddr	string 	`yaml:"redisAddr"`
	RedisPasswd string `yaml:"redisPassword"`
	RedisDBIndex string `yaml:"redisDbIndex"`
}


type StorageConfig struct {
	Storage int    `yaml:"storageEngine"`
	AppKey  string `yaml:"appKey"`
	Secret  string `yaml:"storageAppSecret"`
	Bucket  string `yaml:"bucket"`
	Addr    string `yaml:"addr"`
}

type RtcConfig struct {
	Engine int    `yaml:"rtcEngine"`
	Key    string `yaml:"rtcAppKey"`
	Secret string `yaml:"rtcSecret"`
	Addr   string `yaml:"rtcAddr"`
}

type RtcRecordConfig struct {
	Addr   string `yaml:"rtcRecordAddr"`
}



